﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AirlineProject.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Bill
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<table class="listing" cellpadding="0" cellspacing="0" width="30">
					<tr>
						
						<th>Bill Id</th>
						<th>User Name</th>
						<th>Date</th>
                        <th>Option</th>
                        
					</tr>
					
                    <%
                        DataModels spm = new DataModels();
                        List<Bill> bill = spm.listbill();
                        foreach(Bill ds in bill)
                        {
                         %>
                        <tr>
						<td><%= ds.bill_id %></td>
						<td><%= ds.User.user_name %></td>
						<td><%= ds.date %></td>
                        <td><a href="<%=Url.Action("addbill","Add") %>"><a href="<%=Url.Action("editbill/"+ds.bill_id,"edit") %>"><img src="../../../../Content/admin/images/user_edit.png" title="Edit user" width="16" height="16" /></a><a href="<%= Url.Action("deletebill/"+ds.bill_id,"templateadmin") %>"><img src="../../../../Content/admin/images/user_delete.png" title="Delete user" width="16" height="16" /></a></td>
                        </tr>
        
                      <%  }%>
        
					
				</table>

</asp:Content>
